from django.urls import path
from .views import SinglePageView, IndexView, ArticleListView, ArticleDetailView, CategoryArticleListView

urlpatterns = [
    path('', IndexView.as_view(), name='index'),
    path('list/', ArticleListView.as_view(), name='list'),
    path('<slug:slug>/', SinglePageView.as_view(), name='page'),
    path('article/<int:pk>/', ArticleDetailView.as_view(), name='article_detail'),
    path('category/<int:pk>/', CategoryArticleListView.as_view(), name='category'),
]
